<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
      
  </head>
  <body>
  @extends('Layout/adminBase')
@section('css')
<link rel="stylesheet" type="text/css" href="{{asset('/bootstrap/css/bootstrap.min.css')}}">


@endsection
@section('body')

      <div class="container">
      <div id='Common'>
         @include('Common/tip')
         </div>
         <script>
          //一次性定时器 让错误提示2秒后消失
         setTimeout(function () {
              

              var common = document.getElementById('Common');

              common.style.display = 'none';

            }, 2000);
         </script>
       <form class="" action="{{url('/admin/Goods/store')}}" method="post" enctype="multipart/form-data">
            {{csrf_field()}}

           
            商品名：<input type="text" class="form-control" name="gname"/></br>
            库存量：<input type="text" class="form-control" name="goods_store"/></br>

           商品分类:<select name="typeid" class="form-control">
            @foreach($type as $v)
            <?php $nbsp = str_repeat("&nbsp;",substr_count($v->path,",")*5);
 ?>
           <option value="{{$v->id}}"><?= $nbsp."|--";?>{{$v->name}}</option>
           @endforeach
           </select><br/>
           厂家：<input type="text" class="form-control" name="company"/></br>
           <label>选择图片文件</label>

          <input  type="file" name="pic" accept="image/gif, image/jpeg"/><br/><br/>
            <button type="submit" class="btn btn-success">添加</button>
        </form>
      </div>
  </body>
  @endsection
</html>
